package com.fastwire.carriere.rad.dao;

import java.util.List;

import com.fastwire.carriere.dao.DAOException;
import com.fastwire.carriere.rad.entity.Rad;

/*
 * Creted on 20120225
 * @author: Lei Jun
 */
public interface RadDao
{
    public void saveOrUpdate(Rad rad) throws DAOException;
    public void saveOrUpdate(List<Rad> rads) throws DAOException;

    public Rad getRadByIP(String ip) throws DAOException;
    
    public List<Rad> getRadByNeName(String name) throws DAOException;

    public void invalidate(Rad rad) throws DAOException;

    public List<String> getAllRadIPs() throws DAOException;
}
